package com.dx.wx.controller;

import com.dx.wx.service.DxSaleMoneyService;
import com.ejlchina.data.Array;
import com.yf.response.R;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/dx/sale/money")
public class ApiDxSaleMoneyController {

    @Autowired
    private DxSaleMoneyService dxSaleMoneyService;

    @GetMapping("/")
    public R list(Long startDate,Long endDate){
        Array array = dxSaleMoneyService.findSaleMoney(startDate,endDate);
        return R.ok(array.toString());
    }

}
